<form id="myform" name="myform" action="<?php echo base_url("index.php/scheduling/updatescheduling")?>" method="post">
<input id="sid" name ="sid" type="hidden" value="<?php echo $list["sid"];?>"/>
      <fieldset>
      <legend>Edit Scheduling</legend>
      <table class="nostyle">
        <tr>
          <td style="width:120px;">Date:</td>
          <td><?php echo $list["date"]?></td>
        </tr>
        <tr>
          <td style="width:120px;">Leader:</td>
          <td>
          <select style="width:120px;" id="leadid" name="leadid">
          <?php foreach($leaders as $row){?>
          <option <?php if($row["uid"] == $list["leadid"])echo 'selected="selected"'?> value="<?php echo $row["uid"]?>"><?php echo $row["name"];?></option>
          <?php }?>
          </select>
          </td>
        </tr>
        
        <tr>
          <td style="width:120px;">Staff:</td>
          <td>
          <select style="width:120px;" id="staffid" name="staffid">
          <?php foreach($staffs as $row){?>
          <option <?php if($row["uid"] == $list["staffid"])echo 'selected="selected"'?> value="<?php echo $row["uid"]?>"><?php echo $row["name"];?></option>
          <?php }?>
          </select>
          </td>
        </tr>
 
        <tr>
          <td colspan="2" class="t-right"><input type="submit" class="input-submit" value="Commit" onclick="onschedulingsubmit();"/></td>
        </tr>
      </table>
      </fieldset>

</form>